package com.ioidea.holland.commonBle

import cn.com.heaton.blelibrary.ble.BleRssiDevice
import com.ioidea.base.view.BaseRepository
import com.ioidea.ble.bean.BleRequest
import com.ioidea.holland.api.PhoneBleApi

/**
 * 各个页面都需要监听蓝牙的状态
 */
open class CommonBleRepository : BaseRepository() {


    fun putRequest(request: BleRequest) {
        PhoneBleApi.putRequest(request)
    }

    fun getConnectDevice(): BleRssiDevice? {
        return PhoneBleApi.getConnectDevice()
    }

    fun stopScan() {
         PhoneBleApi.stopScan()
    }

}